package com.zzy.web.controller.order;

import com.zzy.common.core.domain.AjaxResult;
import com.zzy.system.service.IOutStockSheetOrderService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @return 出库单
 * @Description 
 * @Author zhouzhiyong
 * @Date 2025/3/1 00:25
 **/
@Api(value = "Order", tags = {"出库单"}, hidden = false)
@RestController
public class OutStockSheetOrderController
{
    @Autowired
    private IOutStockSheetOrderService iOutStockSheetOrderService;



    @GetMapping("/getOutStockSheetOrderList")
    @ApiOperation("获取观麦出库订单列表")
    public AjaxResult getOutStockSheetOrderList(@RequestParam(value = "status",defaultValue = "15") Integer status,
                                                     @RequestParam("startDate") String startDate,
                                                     @RequestParam("endDate") String endDate,
                                                     @RequestParam(value = "offset",defaultValue = "0") Integer offset,
                                                     @RequestParam(value = "limit",defaultValue = "100") Integer limit,
                                                     @RequestParam(value = "queryType",defaultValue = "1") Integer queryType
                                                     ) throws Exception {
        AjaxResult ajax = AjaxResult.success();
        iOutStockSheetOrderService.getOutStckSheetOrderList(status, startDate, endDate, offset, limit,queryType);
        return ajax;
    }

}
